import { createApp } from 'vue'
import App from './App.vue'//首页面
import router from './router'
import axios from 'axios';
import pinia from './utils/pinia';
import ElementPlus from 'element-plus'
//import 'element-plus/dist/index.css' //引入element-plus 样式
import * as Elicons from "@element-plus/icons-vue";
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/display.css'
async function start() {
  const app = createApp(App);
  for (const name in Elicons) {
    app.component(name, Elicons[name]);
  }
  app.use(pinia)
  app.use(router)

//   app.use(ElementPlus, { i18n: i18n.global.t })
  
  app.mount('#app') //挂在index.html

  app.config.globalProperties.$axios = axios;
}
//console.log(import.meta.env)

start()